package io.itit.ecp.admin.server.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.itit.grass.common.server.entity.BaseTenantEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.math.BigDecimal;


/**
 * <p>
 *
 * @Author：Roy
 * @Description：楼栋
 * @Date：Create by 2023-11-23 09:55:22
 */
@Data
@ToString
@EqualsAndHashCode(callSuper = true)
@TableName("ecp_tt_scene_edifice")
public class SceneEdificeEntity extends BaseTenantEntity {

    private static final long serialVersionUID = 1L;

    /* 项目ID */
    private String sceneProjectId;

    /* 楼栋名称 */
    private String edificeName;

    /**
     * 建筑面积
     */
    private BigDecimal floorArea;

    @TableField(updateStrategy = FieldStrategy.ALWAYS)
    private Double posX;

    @TableField(updateStrategy = FieldStrategy.ALWAYS)
    private Double posY;

    // up,bottom, left, right
    @TableField(updateStrategy = FieldStrategy.ALWAYS)
    private String popPosition;

    private String backgroundImg;

    /* 开始楼层 */
    private Integer startNum;

    /* 结束楼层 */
    private Integer endNum;

    /* 机构Id */
    private String deptId;

}
